/*
	@file : perf/PerfObject.h
	@author: Wolfhead
*/
#ifndef _LOG_PERF_PERF_OBJECT_H_
#define _LOG_PERF_PERF_OBJECT_H_

#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>

namespace logger
{
namespace perf
{

class PerfObject
{
public:

	PerfObject();

	void step_in(
		boost::posix_time::ptime time,
		const std::string message);

	void step_out(
		boost::posix_time::ptime time,
		boost::posix_time::time_duration laterncy);

	std::string get_perf();

private:

	std::string m_string;
};

}//namespace perf
}//namespace logger


#endif // #ifndef _LOG_PERF_PERF_OBJECT_H_
